package com.neuedu.elmserver.utils;

import com.neuedu.elmserver.pojo.Business;

import java.util.Comparator;

public class cmpRemarks implements Comparator<Business> {

    /**
     * 大到小
     * @return
     */
    @Override
    public int compare(Business o1, Business o2) {
        return (int) (o2.getRemarks() * 10 - o1.getRemarks() * 10);
    }
}
